import request from '@/utils/request'

// 查询任务列表
export function groupWelcomeTplList(params) {
  return request({
    url: '/admin/wecom/tlp/list',
    method: 'get',
    params
  })
}


// 新增群欢迎语
export function addGroupTlp(data) {
  return request({
    url: '/admin/wecom/tlp/addGroupTlp',
    method: 'post',
    data
  });
}

//编辑群欢迎语
export function editGroupTlp(data) {
  return request({
    url: '/admin/wecom/tlp/editGroupTlp',
    method: 'put',
    data
  });
}

//编辑查询详情
export function editInfo(data) {
  return request({
    url: '/admin/wecom/tlp/info',
    method: 'post',
    data
  });
}

//删除
export function removeGroupTlp(data) {
  return request({
    url: '/admin/wecom/tlp/removeGroupTlp/' + data.id,
    method: 'delete',
  });
}
